import request from '@/utils/request'

// 查询案例留言列表
export function listProjectMessage(query) {
  return request({
    url: '/lclook/projectMessage/list',
    method: 'get',
    params: query
  })
}

// 查询案例留言详细
export function getProjectMessage(id) {
  return request({
    url: '/lclook/projectMessage/' + id,
    method: 'get'
  })
}

// 新增案例留言
export function addProjectMessage(data) {
  return request({
    url: '/lclook/projectMessage',
    method: 'post',
    data: data
  })
}

// 修改案例留言
export function updateProjectMessage(data) {
  return request({
    url: '/lclook/projectMessage',
    method: 'put',
    data: data
  })
}

// 删除案例留言
export function delProjectMessage(id) {
  return request({
    url: '/lclook/projectMessage/' + id,
    method: 'delete'
  })
}

// 导出案例留言
export function exportProjectMessage(query) {
  return request({
    url: '/lclook/projectMessage/export',
    method: 'get',
    params: query
  })
}